package com.ly.po;

import java.io.Serializable;
import java.util.Objects;

public class TClassPO implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 班级名称
     */
    private String name;

    /**
     * 学院
     */
    private String college;

    /**
     * 专业
     */
    private String major;

    /**
     * 班级代码
     */
    private String classCode;

    /**
     * 班级学生数量
     */
    private Integer studentCount;

    /**
     * 班主任tno
     */
    private Long headTeacherTno;

    /**
     * 班主任姓名
     */
    private String headTeacherName;

    private static final long serialVersionUID = 1L;

    public TClassPO() {
    }

    public TClassPO(Integer id, String name, String college, String major, String classCode, Integer studentCount, Long headTeacherTno, String headTeacherName) {
        this.id = id;
        this.name = name;
        this.college = college;
        this.major = major;
        this.classCode = classCode;
        this.studentCount = studentCount;
        this.headTeacherTno = headTeacherTno;
        this.headTeacherName = headTeacherName;
    }

    @Override
    public String toString() {
        return "TClassPO{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", college='" + college + '\'' +
                ", major='" + major + '\'' +
                ", classCode='" + classCode + '\'' +
                ", studentCount=" + studentCount +
                ", headTeacherTno=" + headTeacherTno +
                ", headTeacherName='" + headTeacherName + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        TClassPO tClassPO = (TClassPO) o;
        return Objects.equals(id, tClassPO.id) && Objects.equals(name, tClassPO.name) && Objects.equals(college, tClassPO.college) && Objects.equals(major, tClassPO.major) && Objects.equals(classCode, tClassPO.classCode) && Objects.equals(studentCount, tClassPO.studentCount) && Objects.equals(headTeacherTno, tClassPO.headTeacherTno) && Objects.equals(headTeacherName, tClassPO.headTeacherName);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, name, college, major, classCode, studentCount, headTeacherTno, headTeacherName);
    }

    public Long getHeadTeacherTno() {
        return headTeacherTno;
    }

    public void setHeadTeacherTno(Long headTeacherTno) {
        this.headTeacherTno = headTeacherTno;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCollege() {
        return college;
    }

    public void setCollege(String college) {
        this.college = college;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public String getClassCode() {
        return classCode;
    }

    public void setClassCode(String classCode) {
        this.classCode = classCode;
    }

    public Integer getStudentCount() {
        return studentCount;
    }

    public void setStudentCount(Integer studentCount) {
        this.studentCount = studentCount;
    }

    public String getHeadTeacherName() {
        return headTeacherName;
    }

    public void setHeadTeacherName(String headTeacherName) {
        this.headTeacherName = headTeacherName;
    }
}
